package xyz.lisys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import xyz.lisys.domain.dao.CedUserDao;
import xyz.lisys.domain.po.CedUserPo;

import java.util.ArrayList;

@Transactional
public class CedUser2ServiceImpl {

    @Autowired
    private CedUserDao cedUserDao;

    public void updateGoUser(String name) {

        ArrayList<Integer> ids = new ArrayList<>();
        ids.add(1);

        ids.forEach(id -> {
            CedUserPo user = new CedUserPo();
            user.setId(1);
            user.setName(name);
            cedUserDao.updateUser(user);
        });
    }
}
